<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
if ( file_exists(DIR_WS_INCLUDES . FILENAME_HEADER_TAGS) ) {
  require(DIR_WS_INCLUDES . FILENAME_HEADER_TAGS);
} else {
?>
  <title><?php echo TITLE ?></title>
<?php
}
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_STYLE;?>">
<?php
// RCI code start
echo $cre_RCI->get('stylesheet', 'original');
// RCI code eof
if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) { require(DIR_WS_JAVASCRIPT . basename($javascript)); } 
?>
</head>
<body>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td align="center" valign="top" style="text-align:center; padding:0px 10px 0px 10px;"> 
        	<table style="width:<?=SITE_WIDTH?>px; margin:auto;" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>

                        <!-- warnings //-->
                        <?php require(DIR_WS_INCLUDES . 'warnings.php'); ?>
                        <!-- warning_eof //-->
                        <!-- header //-->
                        <?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME .'/header.php'); ?>
                        <!-- header_eof //-->
					</td>
				</tr>
				<tr>
					<td>
                    
                            
<!-- body //-->
                        <table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
							<tr>
                            
                                <td><img alt="" src="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME; ?>/images/spacer.gif" width="40" height="1"><br></td>

<?php
if (DOWN_FOR_MAINTENANCE == 'true') {
  $maintenance_on_at_time_raw = tep_db_query("select last_modified from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'DOWN_FOR_MAINTENANCE'");
  $maintenance_on_at_time= tep_db_fetch_array($maintenance_on_at_time_raw);
  define('TEXT_DATE_TIME', $maintenance_on_at_time['last_modified']);
}
?>
<?php
if (DISPLAY_COLUMN_LEFT == 'yes')  {
// WebMakers.com Added: Down for Maintenance
// Hide column_left.php if not to show
if (DOWN_FOR_MAINTENANCE =='false' || DOWN_FOR_MAINTENANCE_COLUMN_LEFT_OFF =='false') {
?>
                                <td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top">
									<table border="0" cellspacing="0" cellpadding="0" style="width:<?php echo BOX_WIDTH_LEFT; ?>px;">
	
                                        <!-- left_navigation //-->
                                        <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
                                        <!-- left_navigation_eof //-->
                                        
                                    </table>
                                </td>
                                
                                <td><img alt="" src="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME; ?>/images/spacer.gif" width="9" height="1"><br></td>
<?php
}
}
?>


                    <!-- content //-->
                    
                                <td valign="top" width="100%">
                                	<table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    
										<?php
                                            if (tep_not_null(INCLUDE_MODULE_ONE)) {
                                                if ($content == 'index_default') {
                                        ?>
                                        
                                            <tr>
                                                <td width="100%">
                                                                <?php include($modules_folder . INCLUDE_MODULE_ONE);?>
                                                </td>
                                            </tr>
                                            
										<?php
                                                }
                                            }
                                        ?>
                                        
                                       	<tr>
                                            <td valign="top" width="100%">
                                            	<table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                	<tr>
                                                    
                                                        <td valign="top" width="100%">
                                                            <?php
                                                            if (isset($content_template) && file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/'.  basename($content_template))) {
                                                                require(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/' . $content . '.tpl.php');
                                                              } else if (file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/' . $content . '.tpl.php')) {
                                                                require(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/'. $content . '.tpl.php');
                                                              }else if (isset($content_template) && file_exists(DIR_WS_CONTENT . basename($content_template)) ){
                                                                require(DIR_WS_CONTENT . basename($content_template));
                                                              } else {
                                                                require(DIR_WS_CONTENT . $content . '.tpl.php');
                                                              }
                                                            ?><br style="line-height:1px;">
                                                                <br style="line-height:5px;">
                                                                                                                             
                                                         </td>
                                                            
                                            <!-- content_eof //-->
                                            
                                                        
                        <?php
                        // WebMakers.com Added: Down for Maintenance
                        // Hide column_right.php if not to show
                        //  if (substr(basename($PHP_SELF), 0, 7) !='account') {
                        if (DISPLAY_COLUMN_RIGHT == 'yes')  {
                        if (DOWN_FOR_MAINTENANCE =='false' || DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF =='false') {
                        ?>
                                                        <td><img alt="" src="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" width="9" height="1"><br></td>
                        
                                                        <td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top" >
                                                            <table border="0" cellspacing="0" cellpadding="0" style="width:<?php echo BOX_WIDTH_RIGHT; ?>px;">
                                                            
                                                                <!-- right_navigation //-->
                                                                <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
                                                                <!-- right_navigation_eof //-->
                                                                
                                                            </table>
                                                        </td>
						<?php
                        //}
                        }}
                        ?>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                
                                <td><img alt="" src="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME; ?>/images/spacer.gif" width="39" height="1"><br></td>

							</tr>
						</table>
<!-- body_eof //-->

					</td>
				</tr>
				<tr>
					<td width="100%">

                        <!-- footer //-->
                        <?php
                        // WebMakers.com Added: Down for Maintenance
                        // Hide footer.php if not to show
                        if (DOWN_FOR_MAINTENANCE_FOOTER_OFF =='false') {
                        require(DIR_WS_INCLUDES . 'counter.php'); ?>
                        
                        
                        <!-- footer //-->
                         <?php require(DIR_WS_TEMPLATES . TEMPLATE_NAME .'/footer.php'); ?>
                        <!-- footer_eof //-->
                        
                         <?php
                          }
                        ?>
                         
                        <?php
                        
                        // BOF: WebMakers.com Added: Center Shop Bottom of the tables are in footer.php
                        // EOF: WebMakers.com Added: Center Shop Bottom of the tables are in footer.php
                        ?>
                        <!-- footer_eof //-->

					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

</body>
</html>